package com.weatherinczbackend.exceptions;

import java.io.File;

/**
 * Checked version of NotAllowedToRewriteFileException.
 *
 * @author Michal Stava <stavamichal@gmail.com>
 */
public class NotAllowedToRewriteFileException extends InternalErrorException {

    File file;
    
    public NotAllowedToRewriteFileException(String message) {
        super(message);
    }

    public NotAllowedToRewriteFileException(String message, Throwable cause) {
        super(message, cause);
    }

    public NotAllowedToRewriteFileException(Throwable cause) {
        super(cause);
    }
    
    public NotAllowedToRewriteFileException(String message, File file, Throwable cause) {
        super(message, cause);
        this.file = file;
    }
    
    public NotAllowedToRewriteFileException(String message, File file) {
        super(message);
        this.file = file;
    }
    
    public NotAllowedToRewriteFileException(File file, Throwable cause) {
        super(cause);
        this.file = file;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }
}
